﻿using System;
using System.Data.SqlClient;

namespace APdal
{
    public class dataLink
    {
        #region "Declarações"

        public static SqlConnection conn = new SqlConnection();
        private readonly frmSql _frmSql;

        #endregion

        public dataLink()
        {
            conn.ConnectionString = Properties.Settings.Default.conStr;            

            try
            {
                conn.Open();
                conn.Close();
            }
            catch (Exception)
            {
                _frmSql = new frmSql();
                _frmSql.ShowDialog();
            }
        }
    }
}